home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: stl.dk!knc
- From: knc@stl.dk (Knud Christensen)
- Subject: Re: HELP: What is wrong ?
- Organization: Lyngsoe Energi & Miljoe, Ballerup, Denmark
- Date: Wed, 17 Jan 1996 07:59:41 GMT
- Message-ID: <DLBFJH.JDI@stl.dk>
- References: <4df373$kd3@ns.etri.re.kr>
-
- In <4df373$kd3@ns.etri.re.kr> jinsoo@etri.re.kr (Jin-Soo Lee) writes:
-
- > Your KIND HELP is needed.
- > I have some problems in the following code.
-
- >---------
-
- >#define DSKPAGESIZE 16*1024
- >#define LOGBUFSIZE 2*DSKPAGESIZE
-
- How about
-
- #define DSKPAGESIZE (16*1024)
- #define LOGBUFSIZE (2*DSKPAGESIZE)
-
- > The code worked well on SUN OS 4.1.3. and K&R C with dbx,
-
- If it really worked, then you had a buggy compiler, or it was not the
- same code ;-)
-
- > but goes wrong when moved to current environment,
- > Solaris 2.4 and SUN C with SparcWorks dbx and gcc with gdb.
- > The statements (1) ~ (5) sometimes make too big or negative values.
- > I can't believe it.
- > What happened ?
- > OS or compiler problem ? or C language syntax problem ?
-
- > Any help is greatly appreciated. Please e-mail me.
-
- >--
- >Jin-Soo Lee Internet: jinsoo@dbserver.etri.re.kr
- >DB Section, Electronics and Telecommunications Research Inst. (ETRI)
- >P.O. Box 106, You-Seong, Taejon, 305-600, Korea
- >TEL: +82-42-860-4865 FAX: +82-42-860-6645
- --
- Knud Christensen
- Lyngsoe Energi og Miljoe a.s, Industriparken 39A, DK 2750 Ballerup, Denmark
- Phone: (+45) 4482 0222, Direct: (+45) 4482 0276
- Fax.: (+45) 4482 0299, Email: knc@stl.dk
-